<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 500px;
            height: 500px;
            /* border-radius: 50%; */
            overflow: hidden; /* 防止图片超出圆形 */
        }

        .box img{
            width: 200px;
            height: 200px;
            border-radius: 50%;  
        }

        .cover{
            object-fit: cover; /* 填充图片 */
            object-position: center; /* 图片居中 */
        }

        .contain{
            object-fit: contain; /* 保持宽高比，填充在内容框中 */
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="/src/img/h-tx.jpg" alt="" class="cover">
        <img src="/src/img/y-tx.jpg" alt="" class="contain">
    </div>
</body>
</html>